package com.ss.android.article.base.feature.message;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.bytedance.common.utility.UIUtils;
import com.ss.android.article.base.ui.TagView;
import com.ss.android.article.browser.R;

public class MessageTabIndicator extends RelativeLayout {
    public TextView a;
    public int b;
    private TagView c;

    public MessageTabIndicator(Context arg2) {
        this(arg2, null);
    }

    public MessageTabIndicator(Context arg2, AttributeSet arg3) {
        this(arg2, arg3, 0);
    }

    public MessageTabIndicator(Context arg3, AttributeSet arg4, int arg5) {
        super(arg3, arg4, arg5);
        this.b = 0;
        MessageTabIndicator.inflate(this.getContext(), R.layout.message_tab_indicator, ((ViewGroup)this));
        this.a = this.findViewById(com.ss.android.article.browser.R.id.indicator_title);
        this.c = this.findViewById(com.ss.android.article.browser.R.id.indicator_tip);
    }

    public void setTipNumber(int arg3) {
        this.b = arg3;
        if(arg3 > 0) {
            UIUtils.setVisibility(this.c, 0);
            this.c.setNumber(arg3);
            this.requestLayout();
        }
        else {
            UIUtils.setVisibility(this.c, 4);
        }
    }
}

